package com.blackline.UI.ACCOUNTS;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Jan, 2013
 * <p>This page is after clicking ACCOUNTS > Accounts in navigation menu.
 * Please refer to UI.Accounts.png in doc-files.<br>
 */
public class Accounts {
	/**
	 * Team filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_TeamCode")
	public WebElement Team_textField;
	
	/**
	 * Entity filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_EntityCode")
	public WebElement Entity_textField;
	
	/**
	 * Account filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AccountNumber")
	public WebElement Account_textField;
	
	/**
	 * Key3 filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_Key3")
	public WebElement Key3_textField;
	
	/**
	 * Description filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_filterRow_tbFilter1_AccountName")
	public WebElement Description_textField;
	
	
	
	/**
	 * Apply link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_DBGrid_lbApplyFilters")
	public WebElement Apply_link;
	
	
	/**
	 * Clear link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlClearFilters")
	public WebElement Clear_link;
	
	
	/**
	 * Advanced link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlToggleFilters")
	public WebElement Advanced_link;
	
	
	/**
	 * Basic link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_DBGrid_hlToggleFilters")
	public WebElement Basic_link;
	
	/**
	 * Edit icon of 1st searched result (suppose only have one result)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain_ctl02_ibEdit")
	public WebElement Edit_iconOf1stResearchedResult;
	
	/**
	 * Entity of 1st searched result (suppose only have one result)
	 */
	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain']/tbody/tr[2]/td[5]")
	public WebElement Entity_of1stSearchedResult;
	
	/**
	 * Account of 1st searched result (suppose only have one result)
	 */
	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain']/tbody/tr[2]/td[6]")
	public WebElement Account_of1stSearchedResult;
	
	/**
	 * Preparer of 1st searched result (suppose only have one result)
	 */
	//Strange: before 3/15, this was 15, but since 16th, it's 14?
//	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain']/tbody/tr[2]/td[15]")
	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_gvMain']/tbody/tr[2]/td[14]")
	public WebElement Preparer_of1stSearchedResult;
	

	
}
